﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
using SDFL.Native;
using SDFL.Helper;

namespace Get_all_handles_of_a_process
{
    class Program
    { 
        static void Main(string[] args)
        {
            List<NativeMethods.SYSTEM_HANDLE_INFORMATION> vshandles = HandleHelper.GetHandles(Process.GetProcessesByName("devenv")[0]);
            Console.WriteLine(vshandles.Count);
            Console.ReadLine();
        }

       
    }
}
